﻿using bat_sym.Helpers;
using bat_sym.Models;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace bat_sym.SimulationLogic
{
    public abstract class ISimulationRule : ViewModelBase
    {
        private bool _isActive;

        public string RuleName { get; protected set; }

        public ParameterDictionary Parameters { get; protected set; }

        public abstract void Execute(ObservableCollection<Bat> bats);

        public bool IsActive
        {
            get
            {
                return _isActive;
            }

            set
            {
                _isActive = value;
                NotifyPropertyChanged("IsActive");
            }
        }

        public ISimulationRule()
        {
            Parameters = new ParameterDictionary();
            IsActive = true;
        }
    }
}
